Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Types and Constants


Dialog Feature Flag Constants

NEW WITH THE APPEARANCE MANAGER

You can set the following bits in the dialog flags field of the extended dialog resource or pass them in the inFlags parameter of NewFeaturesDialog to specify the dialog box's Appearance-compliant features.

enum {
   kDialogFlagsUseThemeBackground  = (1 << 0),
   kDialogFlagsUseControlHierarchy = (1 << 1),
   kDialogFlagsHandleMovableModal  = (1 << 2),
   kDialogFlagsUseThemeControls    = (1 << 3)
};

Constant descriptions

kDialogFlagsUseThemeBackground
If this bit (bit 0) is set, the Dialog Manager sets the dialog box's background color or pattern.
kDialogFlagsUseControlHierarchy
If this bit (bit 1) is set, the Dialog Manager creates a root control in the dialog box and establishes an embedding hierarchy. Any dialog items become controls once the embedding hierarchy is established.
kDialogFlagsHandleMovableModal
If this bit (bit 2) is set, and the dialog box is a movable modal (specify the kWindowMovableModalDialogProc window definition ID), the Dialog Manager handles movable modal behavior such as dragging a dialog box by its title bar or switching out of the application by clicking in another one.
kDialogFlagsUseThemeControls
If this bit (bit 3) is set, the Dialog Manager creates Appearance-compliant controls in the dialog box directly. Otherwise, push buttons, checkboxes, and radio buttons will be displayed in their pre-Appearance forms when systemwide Appearance is off.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998